package cn.didi.feidi.javabackend.mysql.jpa.waterDeliver;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.sql.Date;

@Entity
@DynamicUpdate      //添加该注解后update时只会动态更新变动项而不会全部属性更新影响效率
@DynamicInsert      //添加该注解后insert时只会动态添加变动项而不会全部属性添加影响效率
@Table(name = "water_deliver")
public class WaterDeliver implements java.io.Serializable {
    /* 送水工表 */
    @Id
   // @GeneratedValue(strategy = GenerationType.IDENTITY)

    /* 送水工id */
    private String waterDeliverId;

    /* 送水工名字 */
    private String name;

    /* 送水工电话号码 */
    private String phoneNumber;

     /*送水工年龄*/
    private Integer age;

     /*送水工身份号 */
    private String idCardNo;

     /*送水工账号状态 */
    private String accountStatus;

     /*送水工人脸识别特征URL*/
    private String facialUrl;
    /*送水工人脸识别字符串*/
    private String facialFeature;
     /*送水工合同号*/
    private String contractNo;

     /*送水工服务得分 */
    private float serviceGrade;

    /* 密码*/
    private String password;

    /*送水工确认送货*/
    private Integer waterDeliverConfirm;

    /*工作状态*/
    private Integer workStatus;

    /*预约上班时间*/
    private Date orderTime;

    /*创建时间*/
    private Date createTime;

    public WaterDeliver() {
    }

    public String getWaterDeliverId() {
        return waterDeliverId;
    }

    public void setWaterDeliverId(String waterDeliverId) {
        this.waterDeliverId = waterDeliverId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getIdCardNo() {
        return idCardNo;
    }

    public void setIdCardNo(String idCardNo) {
        this.idCardNo = idCardNo;
    }

    public String getAccountStatus() {
        return accountStatus;
    }

    public void setAccountStatus(String accountStatus) {
        this.accountStatus = accountStatus;
    }

    public String getFacialUrl() {
        return facialUrl;
    }

    public void setFacialUrl(String facialUrl) {
        this.facialUrl = facialUrl;
    }

    public String getFacialFeature() {
        return facialFeature;
    }

    public void setFacialFeature(String facialFeature) {
        this.facialFeature = facialFeature;
    }

    public String getContractNo() {
        return contractNo;
    }

    public void setContractNo(String contractNo) {
        this.contractNo = contractNo;
    }

    public float getServiceGrade() {
        return serviceGrade;
    }

    public void setServiceGrade(float serviceGrade) {
        this.serviceGrade = serviceGrade;
    }

    public Integer getWaterDeliverConfirm() {
        return waterDeliverConfirm;
    }

    public void setWaterDeliverConfirm(Integer waterDeliverConfirm) {
        this.waterDeliverConfirm = waterDeliverConfirm;
    }

    public Integer getWorkStatus() {
        return workStatus;
    }

    public void setWorkStatus(Integer workStatus) {
        this.workStatus = workStatus;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
